# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-otp
pkgver=2.6.0
pkgrel=0
pkgdesc="Python One Time Password Library"
url="https://github.com/pyauth/pyotp"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools"
source="https://pypi.io/packages/source/p/pyotp/pyotp-$pkgver.tar.gz"
builddir="$srcdir/pyotp-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
8d650c6840dd243c4dcb522745ae80b462c1819bcafef226923d13be6a2b096cf5f2146829fd553d5e096d82b67725706d69d0cbb15a5d6586ea234201671bcd  pyotp-2.6.0.tar.gz
"
